/**
 * 资源服务地址
 */
export const RESOURCE_SERVICE = {
    FILE: window.resUrl+'/file',
    IMAGE: window.resUrl+'/image'
};

//文件上传类型限制
export const uploadImgType='.jpg,.jpeg,.png';
export const uploadFileType='.doc,.docx,.ppt,.pptx,.pdf,.txt,.jpg,.jpeg,.png';
export const uploadExcelType='.xlsx,.xls';
export const uploadVideoType='mp4';

//金额输入框 formatter 正则表达式
export const InputNumFormatterReg = /\B(?=(\d{3})+(?!\d))/g;
//金额输入框 parser 正则表达式
export const InputNumParserReg = /\\s?|(,*)/g;

//表单自动适配列大小默认
export const FORM_ADAPTIVE_COL_SIZE_00 = {
    xxl:8,
    xl:8,
    lg:12,
    md:12,
    sm:24
}
export const FORM_ADAPTIVE_COL_SIZE_01 = {
    xxl:12,
    xl:12,
    lg:12,
    md:12,
    sm:24
};

export const FORM_ADAPTIVE_COL_SIZE_00_01 = {
    xxl:12,
    xl:12,
    lg:12,
    md:12,
    sm:24
}
//描述列表响应式布局
export const RESPONSIVE_DESCRIPTIONS = { xxl: 3, xl: 2, lg: 2, md: 1, sm: 1};

/**
 * ===========================> 以下是业务常量 <==================================
 */

//开票状态
export const APPLY_STATUS = {
    1: {color: 'cyan', text: '待开票'},
    2: {color: 'green', text: '已开票'}
}

//发票领取状态
export const RECEIVE_STATUS = {
    0: {color: 'cyan', text: '未领取'},
    1: {color: 'green', text: '已领取'}
}

//税金缴纳情况
export const CONFIRM_STATUS = {
    0: {color: 'cyan', text: '待确认'},
    1: {color: 'green', text: '已缴纳'}
}

//收款申请状态
export const RECEIPT_STATUS = {
    0: {color: 'cyan', text: '待确认'},
    1: {color: 'green', text: '已确认'}
}

//审批审核状态
export const ApproveStatus = {
    waiting: {text: "待审核", color: 'grey'},
    progressing: {text: "审核中", color: '#108ee9'},
    approved: {text: "审核通过", color: '#87d068'},
    rejected: {text: "审核驳回", color: '#ff4d4f'}
};
//审批类型
export const APPROVE_TYPE = {
    /*invoice_apply: { approveTypeName: '开票申请', approveName: '开票申请审批', approveTypeCode: 'invoice_apply'},*/
    inside_province_invoice: {approveTypeName:"生态省内发票",approveTypeCode:"inside_province_invoice",approveName:"生态省内发票审批"},
    inside_province_receipt: {approveTypeName:"生态省内收据",approveTypeCode:"inside_province_receipt",approveName:"生态省内收据审批"},
    outside_province_invoice: {approveTypeName:"生态省外发票",approveTypeCode:"outside_province_invoice",approveName:"生态省外发票审批"},
    outside_province_receipt: {approveTypeName:"生态省外收据",approveTypeCode:"outside_province_receipt",approveName:"生态省外收据审批"},
    self_support_invoice: {approveTypeName:"自营发票",approveTypeCode:"self_support_invoice",approveName:"自营发票审批"},
    self_support_receipt: {approveTypeName:"自营收据",approveTypeCode:"self_support_receipt",approveName:"自营收据审批"},
    company_fee_invoice: {approveTypeName:"公司费用发票",approveTypeCode:"company_fee_invoice",approveName:"公司费用发票审批"},
    company_fee_receipt: {approveTypeName:"公司费用收据",approveTypeCode:"company_fee_receipt",approveName:"公司费用收据审批"},
};